<link href="../addons/jy_zhongyi/resource/css/weui.css" rel="stylesheet">
<link href="../addons/jy_zhongyi/resource/css/zan.css?v=1" rel="stylesheet">
<link href="../addons/jy_zhongyi/resource/css/yuyue.css" rel="stylesheet">
<style>
 body {
            position: static;
            height: auto;
            -webkit-overflow-scrolling: touch;
            background: #fff;
        }

        .weui-navbar .weui-navbar__item {
            background: #fff;
            padding: 15px 0;
            border-bottom: none;
            white-space: nowrap;
            font-size: 14px;
            position: relative;
            color: #333;
        }

        .weui-navbar .weui-navbar__item.lyb-active .weui-navbar__item__text {
            padding: 0;
            color: #C03E3E;
            background: transparent;
        }

        .weui-navbar .weui-navbar__item .weui-navbar__item__underline {
            height: 2px;
            width: 56px;
            position: absolute;
            left: 50%;
            bottom: 5px;
            -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
            border-radius: 2px;
            background: #c03e3e;
            display: none;
        }

        .weui-navbar .weui-navbar__item.lyb-active .weui-navbar__item__underline {
            display: inline-block;
        }

        #medical_Record .table-view-cell:after {
            left: 20px;
        }

        .his-float-box {
            background: #790D0D;
        }

        .justify-content {
            display: -webkit-flex;
            -webkit-justify-content: space-between;
            display: flex;
            justify-content: space-between;
            padding: 8px 15px;
            position: relative;
        }

        .gray-background {
            border-color: #fff !important;
            color: #fff !important;
        }

        .service-flag {
            padding: 11px 15px;
        }

        .service-flag:before {
            content: '';
            position: absolute;
            width: 4px;
            height: 14px;
            top: 50%;
            -webkit-transform: translateY(-50%);
            -moz-transform: translateY(-50%);
            -ms-transform: translateY(-50%);
            -o-transform: translateY(-50%);
            transform: translateY(-50%);
            background: #e64340;
        }

        .weui-navbar__item:after {
            display: none;
        }

        .buy-btn, .buy-more-btn {
            color: #fff;
            line-height: 22px;
            border-radius: 2px !important;
            padding: 0;
            font-size: 12px;
            width: 64px !important;
            background: #C03E3E;
        }

        .buy-btn:after, .buy-more-btn:after {
            -webkit-border-radius: 2px !important;
            -moz-border-radius: 2px !important;
            border-radius: 2px !important;
            border: none;
        }

        #doctor_service > div, #doctor_more_service > div {
            position: relative;
        }

        #doctor_service > div:after, #doctor_more_service > div:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 10px;
            right: 10px;
            height: 1px;
            background: #e5e5e5;
            -webkit-transform: scaleY(0.5);
            transform: scaleY(0.5);
        }

        #doctor_service > div:last-child::after, #doctor_more_service > div:last-child::after {
            height: 0;
        }

        .dot {
            position: relative;
            padding: 0;
        }

        .dot:before {
            content: '';
            position: absolute;
            width: 6px;
            height: 6px;
            background: #DBAB7C 100%;
            -webkit-border-radius: 100%;
            border-radius: 100%;
            left: -12px;
            top: 50%;
            -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
        }

        .care {
            position: absolute;
            top: 25px;
            left: 20px;
        }

        .share {
            border: none;
            background: transparent;
            color: #F2CB99;
            position: absolute;
            top: 25px;
            left: 52px;
        }

        #head_url {
            width: 60px;
            height: 60px;
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            border-radius: 50%;
            border: solid 2px #fff;
            vertical-align: top;
        }

        .card-link {
            display: inline-block;
        }

        .doctor-back {
            background: rgba(192, 62, 62, 0.06) url(//image-1252304461.file.myqcloud.com/image/yishengzhuyebj.png) no-repeat left top;
            background-size: 100% 100%;
            padding-bottom: 57px;
        }

        .weui-panel:before, .weui-panel:after {
            height: 0;
            border: none;
        }

        .illness-view .illness-item {
            padding: 6px 8px;
            display: inline-block;
            margin-right: 8px;
            margin-bottom: 8px;
            line-height: 1;
            background: transparent;
            border: 1px solid #ccc;
            border-radius: 2px;
            font-size: 12px;
            color: #666;
        }

        .weui-panel {
            margin-bottom: 20px;
        }

        .illness-view .illness-item.doctor-eval-item {
            padding: 3px 8px;
            -webkit-border-radius: 9px;
            border-radius: 9px;
            color: #999999;
        }

        .doctor-eval-head {
            vertical-align: middle;
            width: 24px;
            height: 24px;
            border-radius: 50%;
        }

        .doctor-eval-angle {
            position: absolute;
            top: 0;
            left: 18px;
            width: 0;
            height: 0;
            border-top: 12px solid #f7f7f7;
            border-right: 12px solid transparent;
            transform: rotate(45deg);
        }

        #evaluation_list .weui-panel:after {
            border: solid 1px #f2f2f2;
        }

        #evaluation_list.weui-panels .weui-panel:last-child {
            margin-bottom: 0 !important;
        }

        #evaluation_list.weui-panels .weui-panel:last-child::after {
            border: none;
        }

        .share-success {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 100;
            text-align: center;
        }

        .share-success .arrow {
            background: url('//image-1252304461.file.myqcloud.com/image/xiaoshou.png') no-repeat;
            position: absolute;
            width: 32px;
            height: 80px;
            right: 15px;
            top: 4px;
            background-size: 100%;
        }

        .share-success .mask {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
        }

        .share-success .share-title {
            font-size: 18px;
            color: #fff;
            line-height: 26px;
            position: relative;
            padding: 0 20px;
        }

        .close {
            position: relative;
            border-radius: 16px;
            height: 32px;
            display: inline-block;
            width: 32px;
            margin-top: 20px;
        }

        .icon-close {
            background: url('//image-1252304461.file.myqcloud.com/image/guanbi_icon.png') no-repeat left top;
            background-size: 100%;
            height: 32px;
            display: inline-block;
            width: 32px;
        }

        .service-list {
            margin-top: -37px !important;
            overflow: hidden;
            box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.08);
        }

        .triangle-down {
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 5px solid #ccc;
            display: inline-block;
            position: relative;
            top: -1px;
        }

        .service-more {
            color: #ccc;
        }

        .service-more i {
            transition: all .3s;
        }

        .pop-title {
            background: url("//image-1252304461.file.myqcloud.com/image/popWin_title.png") left top no-repeat;
            background-size: 100% 100%;
            width: 142px;
            height: 53px;
            position: absolute;
            top: -18px;
            left: 50%;
            transform: translateX(-50%);
        }

        .more-color.more:after {
            border-color: #AE7747;
        }
        .gaofang_link a:nth-child(2){
            margin-left: 10px;
        }
        .weui-cell{
            padding: 0 12px;
        }
        .weui-cell:before{
            content: none;
        }

        .package img {
            width: 120px;
            height: 120px;
            vertical-align: top;
            border-radius: 4px 0 0 4px;
        }
        .package .right{
            padding: 14px 12px;
            height: 120px;
            background-color: #F7F7F7;
            border-radius: 0 4px 4px 0;
        }
        .lest {
            padding: 1px 0;
            color: #fff;
            /*white-space: nowrap;*/
        }

        .lest.full {
            color: #d9d9d9;
        }

        .hospital-border .lest {
            position: relative;
            line-height: 1;
            text-align: center;
        }

        .hospital-border .lest:after {
            content: '';
            position: absolute;
            height: 1px;
            bottom: -1px;
            left: 0;
            right: 0;
            background: #fff;
            -webkit-transform: scaleY(0.5);
            transform: scaleY(0.5);
            z-index: 1;
            display: none;
        }

        .hospital-border .lest:last-child::after {
            height: 0;
        }
        .tips-view {
            /* padding: 20px 12px; */
            padding: 0 12px;
            background: #FFFFFF;
            font-size: 13px;
            text-align: right;
            color: #666;
        }

        .tips-view span {
            position: relative;
            padding-left: 11px;
            margin-left: 10px;
        }

        @media screen and (max-width: 320px) {
            .tips-view span {
                margin-left: 0;
            }
        }

        .tips-view span:before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            width: 9px;
            height: 9px;
            -webkit-border-radius: 50%;
            border-radius: 50%;
            -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
        }

        .tips-view-top {
            padding-bottom: 12px;
        }
        /* .tips-view-bottom {
            padding-top: 0;
            padding-bottom: 12px;
        } */

        .tips-view-top span:nth-child(1)::before {
            background: #059aeb;
        }

        .tips-view-top span:nth-child(2)::before {
            background: #A3C37A;
        }

        .tips-view-bottom span:nth-child(1)::before {
            background: #E6A85F;
        }

        .tips-view-bottom span:nth-child(2)::before {
            background: #ccc;
        }

		.award-btn {
			position: absolute;
			color: #DBAF78;
			top: 20px;
			right: 20px;
			border: 0;
			font-size: 14px;
			background-color: transparent;
			outline: none;   
		}
        #box .his-calendar {
            margin-bottom: 0;
        }
        .schedule-btn {
            text-align: center;
            padding: 10px 0;
            border: 1px solid #C03E3E;
            border-radius: 4px;
            width: 94%;
            color: #C03E3E;
            font-size: 18px;
            display: block;
            margin: 6px 3% 16px;
        }
        .science_popular_list_ul {
            display: flex;
            flex-direction: column;
        }
        .science_popular_list_ul .center {
            display: flex;
        }
        .science_popular_list_ul .li {
            padding: 12px 0 0 4px;
            position: relative;
        }
        .science_popular_list_ul .li::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            height: 1px;
            background-color: #F7F7F7;
            width: 100%;
        }
        .science_popular_list_ul .li:nth-last-child(1):after {
            height: 0;
        }
        .science_popular_list_ul .center li {
            margin-right: 13px;
            width: 33%;
            height: 72px;
            overflow: hidden;
        }
        .science_popular_list_ul .center li:nth-of-type(3) {
            margin-right: 0;
        }
        .science_popular_list_ul .center li img{
            width: 100%;
            border-radius: 4px;
        }
        .tags{
            width: 100%;
            padding: 10px;
        }
        .tags span{
            font-size: 13px;
            padding: 5px 10px;
            border:1px solid #cccccc;
            color: #777777;
            border-radius: 3px;
            display: inline-block;
            margin-right: 5px;
            margin-bottom: 10px;
        }
        .tag_checked{
            border-color: #C03E3E !important;
            color: #C03E3E !important;
        }
</style>
<div class='fui-page fui-page-current'>
	<div class="weui-tab" id="lyb-0">
    <div class="weui-navbar weui-tab-titles" style="position:fixed;left: 0;right: 0;z-index: 1;">
        <a ng-class="{'weui-navbar__item':1, 'lyb-active':pagedata.type==0}" href="javascript:;" ng-click="pagedata.type=0">
            <span class="weui-navbar__item__text">医生主页</span>
            <div class="weui-navbar__item__underline"></div>
        </a>
        <a class="weui-navbar__item" ng-click="access_json('jy_zhongyi/online.index//id='+pagedata.item.id)">
            <span class="weui-navbar__item__text">在线咨询</span>
        </a>
        <a ng-class="{'weui-navbar__item':1, 'lyb-active':pagedata.type==1}" ng-click="pagedata.getlist(1,true)">
            <span class="weui-navbar__item__text">调理方案</span>
            <div class="weui-navbar__item__underline"></div>
        </a>
		<a ng-class="{'weui-navbar__item':1, 'lyb-active':pagedata.type==2}" ng-click="pagedata.getlist(2,true)">
            <span class="weui-navbar__item__text">TA的文章</span>
            <div class="weui-navbar__item__underline"></div>
        </a>
    </div>
    <div ng-if="pagedata.type==0" class="weui-panels weui-tab-contents his-flex-grow" style="overflow-y:scroll;padding-bottom:2rem;margin-top: 46px;margin-bottom: 80px;">
        <div class="weui-navbar__panel lyb-active">
            <div class="marginBottom10">
                <div class="doctor-back" style="">
                    <div class="his-center paddingTop20" style="">
                        <i href="javascript:;" ng-click="pagedata.setlike();toogle(pagedata,'islike')" ng-class="{'care':1,' icon-care-empty':pagedata.islike!=1,'icon-care':pagedata.islike==1}"></i>
                        <button onclick="$('#showsharecover').modal();" class="share" style="top:20px">
                            <i class="icon icon-fenxiang2" style="font-size:1rem"></i>
                        </button>
                        <img id="head_url" ng-src="{{tomedia(pagedata.item.headimg) || '../core/resource/images/nopic.jpg'}}" style="margin-bottom: 12px;">
                        <div id="doctor_name" class="font16 white-color" style="margin-bottom: 9px;"><span class="fontBold">{{pagedata.item.name}}大夫</span></div>
                        <div id="doctor_info" class="doctor-info font12 white-color" style="margin-bottom: 12px;opacity: 0.8;">{{pagedata.item.storetitle||'全国医馆'}}<span class="marginLeft8">全科</span></div>
                        <div class="font12" style="margin: auto;opacity: 0.8;">
                            <div class="card-link" style="margin-right: 3px;">
                                <span class="white-color">近90日诊量 线下<span id="month_offline_count" class="white-color">{{pagedata.item.downnum||0}}</span>，线上<span id="month_visit_count" class="white-color">{{pagedata.item.linenum||0}}</span></span>
                            </div>
                            <div class="card-link margin-0-20">
                                <span class="white-color" style="margin-right: 3px;">好评率</span>
                                <span id="comments_persent" class="white-color">99%</span>
                            </div>
                        </div>
                    </div>
                </div>
				<div class="white-background radius4 margin12 service-list">
                    <div id="doctor_service">
                        <div class="white-background his-flex padding15">
                            <div>
                                <div class="marginBottom10">
                                    <span class="deep-color">预约门诊</span>
                                    <span style="vertical-align: middle;display: inline-block;height: 12px;width: 1px;background: #222;"></span>
                                    <span class="red-color"><span id="clinic_pricef">{{pagedata.item.price}}</span><span class="font11">元/次</span></span>
                                </div>
                                <div class="light-color font12 margin0">提前预约大夫，医馆面诊</div>
                            </div>
                            <a id="clinic_switch" class="weui-btn weui-btn_mini buy-btn" href="javascript:" ng-click="access_json('jy_zhongyi/yuyue//workerid='+pagedata.item.id)">点此预约</a>
                        </div>
						<div class="white-background his-flex padding15">
                            <div>
                                <div class="marginBottom10">
                                    <span class="deep-color">在线问诊</span>
                                    <span style="vertical-align: middle;display: inline-block;height: 12px;width: 1px;background: #222;"></span>
                                    <span class="red-color"><span id="clinic_pricef">{{pagedata.item.lineprice}}</span><span class="font11">元/次</span></span>
                                </div>
                                <div class="light-color font12 margin0">在线快速咨询，大夫解答</div>
                            </div>
                            <a id="clinic_switch" class="weui-btn weui-btn_mini buy-btn" href="javascript:" ng-click="pagedata.pay_submit({},'/worker_item/linebuy/workerid='+pagedata.item.id,'/online.log/')">点此购买</a>
                        </div>
						<div ng-repeat="item in pagedata.worker_goods" class="white-background his-flex padding15">
                            <div href="javascript:" ng-click="access_json('jy_zhongyi/worker_goods/detail/id='+item.id)">
                                <div class="marginBottom10">
                                    <span class="deep-color">{{item.title}}</span>
                                    <span style="vertical-align: middle;display: inline-block;height: 12px;width: 1px;background: #222;"></span>
                                    <span class="red-color"><span id="clinic_pricef">{{item.price}}</span><span class="font11">元</span></span>
                                </div>
                                <div class="light-color font12 margin0">{{item.desc}}</div>
                            </div>
                            <a id="clinic_switch" class="weui-btn weui-btn_mini buy-btn" href="javascript:" ng-click="pagedata.goodspay_submit({},'/worker_goods/pay/id='+item.id,'/worker_goods.log/')">点此购买</a>
                        </div>
					</div>
				</div>
			</div>
            <div class="his-flex marginBottom10">
                <div class="weui-panel__hd his-flex his-align-bottom no-after-line padding12 _scheduleShow" style="">
                    <div class="deep-color fontBold font18">本月排班</div>
                    
                </div>
                <div>
                    <div class="tips-view tips-view-top _scheduleShow" style="">
                        <span class="font13">可提交加诊申请</span>
                        <span class="font13">可微信预约</span>
                    </div>
                    <div class="tips-view tips-view-bottom _scheduleShow" style="">
                        <span class="font13">可电话预约</span>
                        <span class="font13">已约满</span>
                    </div>
                </div>
            </div>
            <div class="weui-panel" style="margin-bottom: 0;">
				<div id="box" class="weui-panel__bd padding-10-12 paddingTop0">
				  <div ng-repeat="item in pagedata.months" ng-if="pagedata.showall || $index==0" class="his-calendar">
					<table class="his-calendar-table">
					  <caption class="calendar-caption" style="padding:8px">
						<div class="caption-title">{{item.title}}</div>
					  </caption>
					  <thead>
						<tr>
						  <th>日</th>
						  <th>一</th>
						  <th>二</th>
						  <th>三</th>
						  <th>四</th>
						  <th>五</th>
						  <th>六</th>
						</tr>
					  </thead>
					  <tbody>
						<tr ng-repeat="dli in item.days">
						  <td ng-repeat="d in dli.indays" ng-class="{'calendar-day':1, 'calendar-empty':d.ispass,'calendar-valid':!d.ispass}">
							<div ng-if="!d.ispass">{{d.day}}
								<span style="float: right" class="showCity2021-09-01 light-color font12"></span>
							</div>
							<div ng-if="!d.ispass && d.isworker" href="javascript:" ng-click="access_json('jy_zhongyi/create//workerid='+pagedata.item.id+'&daydata='+d.daydata)" class="hospital-border">
							  <div ng-class="{'lest font10':1,'CCCCCC-bg':d.isman,'A3C37A-bg':!d.isman}" style="font-size: 10px">
								{{d.store}}
							  </div>
							</div>
						  </td>
						</tr>
					  </tbody>
					</table>
				  </div>
				</div>
                <a class="schedule-btn" ng-click="pagedata.showall=true" href="javascript: void(0);">查看大夫全部排班</a>
            </div>
        </div>
        <div id="doctor_jianjie" class="weui-panel" style="margin-bottom: 24px;">
            <div class="weui-panel__hd no-after-line padding12">
                <div class="deep-color fontBold font18">大夫简介</div>
            </div>
            <div class="weui-panel__bd" style="padding: 4px 12px;">
                <div id="inst" class="middle-color lineHeight22" ng-bind-html="trust(pagedata.item.desc)"></div>
            </div>
        </div>
        <div id="doctor_shanchang" class="weui-panel" style="margin-bottom: 24px;">
            <div class="weui-panel__hd no-after-line padding12">
                <div class="deep-color fontBold font18">擅长调理</div>
            </div>
            <div class="weui-panel__bd" style="padding: 4px 12px;">
                <div id="doctor_symptoms" class="illness-view professional textline3">
				<span ng-repeat="l in pagedata.item.label" class="illness-item">{{l.title}}</span>
				</div>
            </div>
        </div>
        <div id="doctor_pingjia" class="weui-panel marginBottom0">
            <div class="weui-panel__hd his-flex his-align-bottom no-after-line padding12 paddingBottom8">
                <div class="deep-color fontBold font18">患者评价<span id="commont_count" class="font12 deep-color" style="font-weight: normal;">（{{item.pingjianum||0}}人评价）</span>
                </div>
            </div>
            <div id="tags" class="tags"> 
            </div>
            <div id="evaluation_list" class="weui-panel__bd padding12 weui-panels paddingBottom0">
            <div ng-repeat="item in pagedata.list" class="weui-panel paddingBottom12" style="margin-bottom: 16px;">
				<div class="his-flex marginBottom12">
					<div class="his-flex">
						<img src="../addons/jy_zhongyi/resoure/images/user_img.png" class="doctor-eval-head" alt="">
						<span class="font12 middle-color marginLeft12 marginRight8">{{item.nickname}}</span>
						<div class="font12 light-color his-flex-grow">
						<div class="star star1">
								<span ng-class="{'shine':item.star >= 1}"><i class="icon icon-shoucang-tianchong"></i></span>
								<span ng-class="{'shine':item.star >= 2}"><i class="icon icon-shoucang-tianchong"></i></span>
								<span ng-class="{'shine':item.star >= 3}"><i class="icon icon-shoucang-tianchong"></i></span>
								<span ng-class="{'shine':item.star >= 4}"><i class="icon icon-shoucang-tianchong"></i></span>
								<span ng-class="{'shine':item.star >= 5}"><i class="icon icon-shoucang-tianchong"></i></span>
						 </div>
						</div>
					</div>
					<span class="light-color font12">{{item.createtime}}</span>
				</div>
				<div class="marginBottom8">
					<div class="illness-view his-flex-grow">
					<span ng-repeat="l in item.label" class="illness-item doctor-eval-item">{{l.title}}</span>
					</div>
				</div>
				<div class="lineHeight22 middle-color marginBottom8">
				{{item.content}}
				</div>
			</div>
			</div>
            <button style="background-color: #C03E3E;border:none;outline:none;height: 45px;width: 100%;color: #ffffff">
				<a class="white-color font12" href="javascript:" ng-click="access_json('jy_zhongyi/pingjia//workerid='+pagedata.item.id)">更多评价</a>
            </button>
        </div>
    </div>
	<div ng-if="pagedata.type==1" class="weui-panels weui-tab-contents his-flex-grow" style="overflow-y:scroll;padding-bottom:2rem;margin-top: 46px;margin-bottom: 80px;">
        <div class="weui-navbar__panel lyb-active">
			<div class="light-color margin10 radius4 his-flex" style="background: #F9EEE3;padding: 9px 16px 9px 16px;">
				<span class="icon-laba font18 white-color marginRight8 his-flex-unshrink"></span>
				<span class="middle-color font12 lineHeight18" style="vertical-align: middle;">
				所有处方会有2天的有效期，2天内可支付购药，处方过期后需要联系医生重新为您开方
				</span>
			</div>
			<div ng-if="pagedata.type==1 && pagedata.list.length==0" class="his-center">
					<img style="height:5rem" src="../addons/jy_zhongyi/resource/images/nvhai.png"/>
					<div style="font-size:0.7rem;line-height:1.3rem">没有找到相关数据！</div>
			</div>
		</div>
    </div>
	<div ng-if="pagedata.type==2" class="weui-panels weui-tab-contents his-flex-grow" style="overflow-y:scroll;padding-bottom:2rem;margin-top: 46px;margin-bottom: 80px;">
        <div class="weui-navbar__panel lyb-active">
			<div ng-if="pagedata.list" class="fui-goods-group no">
				<div ng-repeat="item in pagedata.list" class="fui-goods-item" style="background:none">
						<div ng-click="access_json('jy_zhongyi/worker_news//id='+item.id);" class="image" style="position:relative;height:6rem;width:6.6rem;background-image: url({{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}})"></div>
						<div ng-click="access_json('jy_zhongyi/worker_news//id='+item.id);" class="detail" style="padding-right:0.3rem">
								<div class="name bold" style="margin-top:0.4rem">
									{{item.title}}
								</div>
								<div class="subtitle overflow-h2" style="margin-bottom:0.4rem;font-size:0.6rem">
									{{item.desc}}
								</div>
								<div class="price" style="margin-top: 0.1rem">
									<span class="subtitle r-f" style="font-weight:400;font-size:0.6rem">{{item.readnum || 0}}次阅读</span>
								</div>
						</div>
				</div>
			</div>
			<div ng-if="!pagedata.loading && (!pagedata.list || pagedata.list.length<1)" class='content-empty'>
						<i class='icon icon-chakanpingjia' style="font-size:1.5rem"></i><br/>暂时没有任何文章
			</div>
		</div>
    </div>
</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<div ng-include="sys_html('common/_share')"></div>
<script type="text/javascript">
scope.pagedata.pay_submit=function(post,post_url,complete_url){
	scope.post_json(post_url,post,function(result){
		scope.pagedata.order_id=result.order_id;
		scope.$evalAsync();
		scope.tool.pay(result.pay_id,function(res){
				if(res.type=='success'){
					scope.message(res.message,'success','/online.log//payid='+result.pay_id);
				}else{
					scope.message(res.message,'success','/online.log//payid='+result.pay_id);
				}
		},'','',complete_url,complete_url);
	});
}
scope.pagedata.goodspay_submit=function(post,post_url,complete_url){
	scope.post_json(post_url,post,function(result){
		scope.pagedata.order_id=result.order_id;
		scope.$evalAsync();
		scope.tool.pay(result.pay_id,function(res){
				if(res.type=='success'){
					scope.message(res.message,'success','/worker_goods.log//payid='+result.pay_id);
				}else{
					scope.message(res.message,'success','/worker_goods.log//payid='+result.pay_id);
				}
		},'','',complete_url,complete_url);
	});
}
//获取关注
scope.pagedata.setlike=function(){
	var params={
		op:'like',
		callback:function(res){
		}
	};
	scope.post_json(params);
}
scope.pagedata.getlist=function(type,isnew){
	scope.pagedata.type=type;
	if(scope.pagedata.type==2){
		scope.tool.get_list('jy_zhongyi/worker_news/getlist/workerid='+scope.pagedata.item.id,isnew);
	}else{
		scope.tool.get_list('jy_zhongyi/worker_item/getpingjia/user_id='+scope.pagedata.item.id,isnew);
	}
}
scope.pagedata.scroll_bottom=function(){
	scope.pagedata.getlist(scope.pagedata.type,false);
}
scope.get('jy_zhongyi/get_data/getarea/',function(res){
	scope.pagedata.area=res.list
	scope.$evalAsync();
});
scope.pagedata.getstores=function(area_id){
	area_id=area_id?area_id:0
	scope.get('jy_zhongyi/store_list/getlist/area_id='+area_id,function(res){
		scope.pagedata.stores=res.list
		scope.$evalAsync();
	});
}
scope.pagedata.getstores();
scope.get('jy_zhongyi/worker_goods/getlist/workerid='+scope.pagedata.item.id,function(res){
	scope.pagedata.worker_goods=res.list
	scope.$evalAsync();
});
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>